<!--
//****************************************************************/
//Creation History
// NAME:    Division.jsp
// TITLE:   Division Maintenance
// BY:      Miranda
// DATE:    13/08/2004  CRLOG 1347
//******************************************************************/
-->

<%@ include file="../header.jsp" %>
<%@ page import="admin.system.division.*" %>

<script language=javascript>
 function formValidation() {
    var d1 = fm.division_id;
    var d2 = fm.division_name;

    if (isNull(d1,"Division ID")||isNull(d2,"COST CENTER Name"))  {
       return false;
    }

    return true;
 }
<%
    DivisionBean division = (DivisionBean)request.getAttribute("division");
    if (division==null){
       division = new Division();
       System.out.println("New");
    }
       System.out.println("Old");

%>
</script>
<body>
<h2>Division Maintenance</h2>
<form id=fm method=post action=<%=contextPath%>/servlet/admin.system.division.DivisionServlet >
<input type=hidden name=formAction value=<%=formAction%> >
<table cols=2 border=0 >
<tr>
  <td>Division ID</td>
  <td><input type=text name=division_id value="<%=division.getDivision_id()%>" maxlength=10 <%=readOnly%> ></td>
</tr>
<tr>
  <td>Division Name</td>
  <td><input type=text name=division_name value="<%=division.getDivision_name()%>" maxlength=50></td>
</tr>
</table>
<hr>
<p>
  <INPUT type=button value=Save onclick="save()" >
  <INPUT type=button value=Delete  onclick="deleteRecord()"  >
  <INPUT type=reset  value=Cancel >
</p>
</form>
<%@ include file="../footer.jsp" %>
</body>
</body>
</html>

